
// def name = 'a singgle \' a \'t string'

// println name

// def trupleString = '''
// line one
// line two 
// line three 
// '''

// println trupleString

// def name2 = "android"
// def doubleString = "this is a common string${name2}"
def sum  = "The sum of 2 and 3 equals ${2+3} "
// println sum

// def result = echo(sum)
// println result
// GString echo(GString msg){
//     return msg
// }
/*=================================字符串方法=====================================*/
def str = "hello groovy"
// println str.center(10)
// println str.padLeft(8,'a')
def str2 = "groovy"
// println str > str2

// println str[0..4]

// println str.minus(str2)
// println str - str2

// println str.reverse()

// println str.capitalize()
str3 = '3'
println str3.toInteger().class